package com.demo.shardingsphere.order.service;


import com.demo.shardingsphere.order.model.Order;

import java.util.List;

/**
 * 订单操作类
 */
public interface IOrderService {

    /**
     * 插入订单
     * @param order
     * @return
     */
    int insertOrder(Order order);

    /**
     * 根据订单号查询订单
     * @param orderNo
     * @return
     */
    Order queryOrder(String orderNo );

    /**
     * 根据用户id 查询订单
     * @param userId
     * @return
     */
    List<Order> queryOrderListByUserId(Long userId);
}
